<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>区域管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/oa/efficiency/delayedList">申请列表</a></li>
		<li class="active"><a href="${ctx}/oa/efficiency/form?id=${delayed.id}">申请处理</a></li>
	</ul>
	<br />
	
	<form:form id="inputForm" modelAttribute="delayed" action="${ctx}/oa/efficiency/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>
		<div class="control-group">
			<label class="control-label" for="applicant">申请人:</label>
			<div class="controls">
				<input type="text" id="applicant" value="${delayed.applicant }" disabled="disabled"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="reason">申请原因:</label>
			<div class="controls">
				<textarea  type="text" id="reason" rows="3" maxlength="200" disabled="disabled">${delayed.reason }</textarea>
			</div>
		</div>
		<div class="control-group">
		    <label class="control-label" for="applicantDate">申请时间:</label>
		    <div class="controls">
		      <input type="text" id="applicantDate" value="<fmt:formatDate value="${delayed.applicantDate }" type="both"/>" disabled="disabled">
		    </div>
		</div>
		
		<div class="control-group">
			<label class="control-label">延长时间:</label>
			<div class="controls">
				<form:select path="extendDate" class="required input-small">
					<form:options items="${fns:getDictList('delayed_application_date')}"
						itemLabel="label" itemValue="value" htmlEscape="false"
						required="required" />
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		
		<div class="modal-footer">
			<div class="control-group">
				<div class="controls">
					<input id="btnSubmit" class="btn btn-primary" type="submit" value="确   定" />&nbsp; 
					<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
				</div>
			</div>	
		</div>
	</form:form>
</body>
</html>